import { useState } from 'react'
import { useLocation, useParams, useSearchParams } from 'react-router-dom';

export default function Info() {
    let [searchParams, setSearchParams] = useSearchParams();
    let par = useParams()

    const [ id, setId ] = useState(
        par.id
    )

  
    // let location = useLocation();

   

    // const id = location.state;

    // console.log("location: ", location);
    // console.log("searchParams: ", searchParams.get("id"));

    return (
        <div className="info">

            详情 {id}
        </div>
    )
}